/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dedaletechnology.mrquizz.model;

import java.util.List;
import javax.jdo.annotations.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * This is the basic question object.
 *
 * @author developer
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MultipleChoiceQuestion {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    long idQuestion;
    @Persistent
    String dateVersion;
    @Persistent
    List<String> authors;
    @Persistent
    List<String> comments;
    @Persistent
    List<String> tag;
    @Persistent
    List<String> eval;
    @NotNull
    @Size(max = 64)
    @Persistent
    String titleQuestion;
    @Persistent
    String question;
    @Persistent
    String ressource;
    @Persistent
    String explanation;
    @NotNull
    @Size(max = 64)
    @Persistent
    String answerA;
    @NotNull
    @Size(max = 64)
    @Persistent
    String answerB;
    @NotNull
    @Size(max = 64)
    @Persistent
    String answerC;
    @NotNull
    @Size(max = 64)
    @Persistent
    String answerD;
    @NotNull
    @Size(max = 64)
    @Persistent
    String soltionAnswer;
}
